package com.combetter.changxing.ui.fragment;

import com.combetter.changxing.MyApp;
import com.combetter.changxing.R;
import com.combetter.changxing.databinding.FragmentMineAlterPhoneBinding;
import com.combetter.changxing.ui.base.BaseFragment;
import com.combetter.changxing.util.DataUtils;
import com.combetter.changxing.viewmodel.MineUserInfoViewModel;

/**
 * 我的- 修改手机号Fragment
 * <p>
 * Created by 深圳唐龙飞讯科技有限公司 on 2018/6/13.
 */
public class MineAlterPhoneFragment extends BaseFragment<FragmentMineAlterPhoneBinding, MineUserInfoViewModel> {
    @Override
    public int setLayout() {
        return R.layout.fragment_mine_alter_phone;
    }

    @Override
    public void init() {
        if (MyApp.getInstance().getUserInfo() != null) {
            mBinding.setUser(MyApp.getInstance().getUserInfo());
            mBinding.tvShowPhone.setText(DataUtils.hideMobilePhone4(MyApp.getInstance().getUserInfo().getPhone()));
        }
    }

    @Override
    public Class createViewModel() {
        return MineUserInfoViewModel.class;
    }

    @Override
    public void loadData() {

    }
}
